import request from '@/utils/request'

export function getNoticeInfo(
  noticeTitle: string,
  noticeType: string,
  noticeState: string,
  pageSize: number,
  page: number
) {
  return request({
    url:
      '/notice/getInfo?noticeTitle=' +
      noticeTitle +
      '&noticeType=' +
      noticeType +
      '&noticeState=' +
      noticeState +
      '&pageSize=' +
      pageSize +
      '&page=' +
      page,
    method: 'get'
  })
}

export function getAllNotice(noticeState: string) {
  return request({
    url: '/notice/getAllNotice?noticeState=' + noticeState,
    method: 'get'
  })
}
